package com.mine.common.core.request;

import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Header;
import com.mine.common.core.constants.Constants;
import com.mine.common.core.request.dto.ResponseData;
import com.mine.common.core.request.dto.UserVO;


/**
 * 用户
 *
 * @author WangYX
 * @version 1.0.0
 * @date 2023/11/28 16:53
 */
public interface UserClient {

    /**
     * 获取当前用户信息
     *
     * @param token 请求头
     * @return {@link UserVO}
     * @author WangYX
     * @date 2023/11/29 11:05
     */
    @Get("http://127.0.0.1:8080/user/current")
    ResponseData<UserVO> getCurrentUser(@Header(Constants.AUTHORIZATION) String token);

}
